package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 * 
 * @author yanglinfengkk
 * @email 2640646499@qq.com
 * @date 2020-06-06 10:01:26
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {
    /**
     * SELECT attr_id FROM `pms_attr` WHERE attr_id IN(?) AND search_type=1
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrIds(@Param("attrIds") List<Long> attrIds);
}
